'''
微信小程序：爱玛会员俱乐部
功能：签到、抽奖（分享）
抽奖每天免费一次，分享一次，一共抽两次
抓Access-token
青龙变量名  export amhyjlb=""  多号换行
'''


import base64

exec(base64.b64decode('aW1wb3J0IHJlcXVlc3RzCmltcG9ydCBqc29uCmltcG9ydCBkYXRldGltZQppbXBvcnQgcmFuZG9tCmltcG9ydCBvcwppbXBvcnQgbm90aWZ5Cm5vdyA9IGRhdGV0aW1lLmRhdGV0aW1lLm5vdygpCnRpbWVzdGFtcF9tcyA9IGludChyb3VuZChub3cudGltZXN0YW1wKCkgKiAxMDAwKSkKcmFuZG9tX251bWJlciA9IHJhbmRvbS5yYW5kaW50KDAsIDk5OTk5KQpPT08wME8wTzBPT09PME8wMCA9ZiJ7dGltZXN0YW1wX21zOjAxM317cmFuZG9tX251bWJlcjowNX0iI2xpbmU6OApPT09PMDBPME9PMDBPME9PTyA9Ik1vemlsbGEvNS4wIChXaW5kb3dzIE5UIDEwLjA7IFdpbjY0OyB4NjQpIEFwcGxlV2ViS2l0LzUzNy4zNiAoS0hUTUwsIGxpa2UgR2Vja28pIENocm9tZS8xMDcuMC4wLjAgU2FmYXJpLzUzNy4zNiBNaWNyb01lc3Nlbmdlci83LjAuMjAuMTc4MSgweDY3MDAxNDNCKSBOZXRUeXBlL1dJRkkgTWluaVByb2dyYW1FbnYvV2luZG93cyBXaW5kb3dzV2VjaGF0L1dNUEYgWFdFQi84NDQ3IiNsaW5lOjkKZGVmIE8wT09PMDAwT09PTzBPTzAwIChPTzBPTzBPMDAwMDBPME9PTyAsTzAwTzBPTzBPT08wT09PT08gKTojbGluZToxMAogICAgT08wMDAwTzAwTzAwME9PME8gPWpzb24gLmR1bXBzICh7ImFjdGl2aXR5SWQiOiIxMDAwMDA5MTUiLH0pI2xpbmU6MTMKICAgIE9PMDBPMDBPTzBPME9PT09PID17J1VzZXItQWdlbnQnOk9PT08wME8wT08wME8wT09PICwnQWNjZXB0LUVuY29kaW5nJzoiZ3ppcCxjb21wcmVzcyxicixkZWZsYXRlIiwnQ29udGVudC1UeXBlJzoiYXBwbGljYXRpb24vanNvbiIsJ3RpbWUtc3RhbXAnOk9PTzAwTzBPME9PT08wTzAwICwnYWNjZXNzLXRva2VuJzpPTzBPTzBPMDAwMDBPME9PTyAsfSNsaW5lOjIwCiAgICBPME8wT08wME9PME9PT08wTyA9cmVxdWVzdHMgLnBvc3QgKCJodHRwczovL3Njcm0uYWltYXRlY2guY29tL2FpbWEvd3hjbGllbnQvbWt0L2FjdGl2aXRpZXMvc2lnbjpqb2luIixkYXRhID1PTzAwMDBPMDBPMDAwT08wTyAsaGVhZGVycyA9T08wME8wME9PME8wT09PT08gKSNsaW5lOjIxCiAgICBPME8wT08wME9PME9PT08wTyA9anNvbiAubG9hZHMgKE8wTzBPTzAwT08wT09PTzBPIC50ZXh0ICkjbGluZToyMgogICAgaWYgTzBPME9PMDBPTzBPT09PME8gWydjb2RlJ109PTIwMCA6I2xpbmU6MjMKICAgICAgICBwcmludCAoJ+S7iuaXpeetvuWIsOaIkOWKn++8gScpI2xpbmU6MjQKICAgICAgICBPME8wT08wTzBPT08wMDAwTyA9anNvbiAuZHVtcHMgKHsiYWN0aXZpdHlJZCI6MTAwMDAwOTIxIH0pI2xpbmU6MjcKICAgICAgICBPME8wT08wME9PME9PT08wTyA9cmVxdWVzdHMgLnBvc3QgKCJodHRwczovL3Njcm0uYWltYXRlY2guY29tL2FpbWEvd3hjbGllbnQvbWt0L2FjdGl2aXRpZXMvc2hhcmUiLGRhdGEgPU8wTzBPTzBPME9PTzAwMDBPICxoZWFkZXJzID1PTzAwTzAwT08wTzBPT09PTyApI2xpbmU6MjgKICAgICAgICBPME8wT08wME9PME9PT08wTyA9anNvbiAubG9hZHMgKE8wTzBPTzAwT08wT09PTzBPIC50ZXh0ICkjbGluZToyOQogICAgICAgIGlmIE8wTzBPTzAwT08wT09PTzBPIFsnY29kZSddPT0yMDAgOiNsaW5lOjMwCiAgICAgICAgICAgIHByaW50ICgn5YiG5Lqr5oiQ5Yqf77yBJykjbGluZTozMQogICAgICAgIGVsaWYgTzBPME9PMDBPTzBPT09PME8gLmdldCAoInJlc3VsdCIpPT0ic3VjY2VzcyI6I2xpbmU6MzIKICAgICAgICAgICAgcHJpbnQgKGYn5YiG5Lqr5oiQ5YqfficpI2xpbmU6MzMKICAgICAgICBlbHNlIDojbGluZTozNAogICAgICAgICAgICBwcmludCAoZidja+i/h+acn+S6hu+8jOivt+mHjeaWsOaKk++8gScpI2xpbmU6MzUKICAgICAgICBmb3IgTzAwTzAwT09PT09PTzBPMDAgaW4gcmFuZ2UgKDMgKTojbGluZTozNwogICAgICAgICAgICBwcmludCAoZiLnrKx7TzAwTzAwT09PT09PTzBPMDAgKyAxfeasoeaKveWlliIpI2xpbmU6MzgKICAgICAgICAgICAgTzBPME9PMDBPTzBPT09PME8gPXJlcXVlc3RzIC5wb3N0ICgiaHR0cHM6Ly9zY3JtLmFpbWF0ZWNoLmNvbS9haW1hL3d4Y2xpZW50L21rdC9hY3Rpdml0aWVzL2x1Y2t5OmpvaW4iLGRhdGEgPU8wTzBPTzBPME9PTzAwMDBPICxoZWFkZXJzID1PTzAwTzAwT08wTzBPT09PTyApI2xpbmU6MzkKICAgICAgICAgICAgTzBPME9PMDBPTzBPT09PME8gPWpzb24gLmxvYWRzIChPME8wT08wME9PME9PT08wTyAudGV4dCApI2xpbmU6NDAKICAgICAgICAgICAgaWYgTzBPME9PMDBPTzBPT09PME8gWydjb2RlJ109PTIwMCA6I2xpbmU6NDEKICAgICAgICAgICAgICAgIHByaW50ICgn5oq95aWW5oiQ5Yqf77yBJykjbGluZTo0MgogICAgICAgICAgICBlbGlmIE8wTzBPTzAwT08wT09PTzBPIFsnY29kZSddPT05MTA1MDEgOiNsaW5lOjQzCiAgICAgICAgICAgICAgICBwcmludCAoZifkurLvvIzmgqjnmoTlj4LkuI7mnLrkvJrlt7LnlKjlrozvvIzor7fkuIvmrKHlho3mnaXvvZ4nKSNsaW5lOjQ0CiAgICAgICAgICAgICAgICBicmVhayAjbGluZTo0NQogICAgICAgICAgICBlbHNlIDojbGluZTo0NgogICAgICAgICAgICAgICAgcHJpbnQgKGYnY2vov4fmnJ/kuobvvIzor7fph43mlrDmipPvvIEnKSNsaW5lOjQ3CiAgICAgICAgICAgICAgICBicmVhayAjbGluZTo0OAogICAgICAgIE8wTzBPTzAwT08wT09PTzBPID1yZXF1ZXN0cyAuZ2V0ICgiaHR0cHM6Ly9zY3JtLmFpbWF0ZWNoLmNvbS9haW1hL3d4Y2xpZW50L21lbWJlci9JbmRleEluZm8iLGhlYWRlcnMgPU9PMDBPMDBPTzBPME9PT09PICkjbGluZTo0OQogICAgICAgIE8wTzBPTzAwT08wT09PTzBPID1qc29uIC5sb2FkcyAoTzBPME9PMDBPTzBPT09PME8gLnRleHQgKSNsaW5lOjUwCiAgICAgICAgT09PME9PTzBPT09PME9PMDAgPU8wTzBPTzAwT08wT09PTzBPIC5nZXQgKCdjb250ZW50Jyx7fSkjbGluZTo1MQogICAgICAgIE9PTzAwT08wMDAwMDBPTzAwID1PT08wT09PME9PT08wT08wMCAuZ2V0ICgnbW9iaWxlJyx7fSkjbGluZTo1MgogICAgICAgIHByaW50IChmJ+eUqOaIt++8mntPT08wME9PMDAwMDAwT08wMH0nKSNsaW5lOjUzCiAgICAgICAgT09PME9PTzBPT09PME9PMDAgPU8wTzBPTzAwT08wT09PTzBPIC5nZXQgKCdjb250ZW50Jyx7fSkjbGluZTo1NAogICAgICAgIE9PTzBPT09PT08wT08wTzBPID1PT08wT09PME9PT08wT08wMCAuZ2V0ICgndmlwTWVtYmVyTGV2ZWxEVE8nLHt9KSNsaW5lOjU1CiAgICAgICAgTzBPT08wMDBPT09PTzAwME8gPU9PTzBPT09PT08wT08wTzBPIC5nZXQgKCdncm93dGhWYWx1ZScse30pI2xpbmU6NTYKICAgICAgICBwcmludCAoZifmiJDplb/lgLzvvJp7TzBPT08wMDBPT09PTzAwME99JykjbGluZTo1NwogICAgICAgIE9PTzBPT08wT09PTzBPTzAwID1PME8wT08wME9PME9PT08wTyAuZ2V0ICgnY29udGVudCcse30pI2xpbmU6NTgKICAgICAgICBPTzBPTzBPTzAwT09PME8wTyA9T09PME9PTzBPT09PME9PMDAgLmdldCAoJ3ZpcE1lbWJlclBvaW50RFRPJyx7fSkjbGluZTo1OQogICAgICAgIE9PT08wTzBPT08wT08wT08wID1PTzBPTzBPTzAwT09PME8wTyAuZ2V0ICgncG9pbnRWYWx1ZScse30pI2xpbmU6NjAKICAgICAgICBwcmludCAoZifnp6/liIbmnInvvJp7T09PTzBPME9PTzBPTzBPTzB9JykjbGluZTo2MQogICAgZWxpZiBPME8wT08wME9PME9PT08wTyBbJ2NvZGUnXT09OTIwMTAxIDojbGluZTo2MgogICAgICAgIHByaW50IChmJ+S7iuaXpeW3suetvuWIsOS6hu+8gScpI2xpbmU6NjMKICAgICAgICBPME8wT08wTzBPT08wMDAwTyA9anNvbiAuZHVtcHMgKHsiYWN0aXZpdHlJZCI6MTAwMDAwOTIxIH0pI2xpbmU6NjYKICAgICAgICBPME8wT08wME9PME9PT08wTyA9cmVxdWVzdHMgLnBvc3QgKCJodHRwczovL3Njcm0uYWltYXRlY2guY29tL2FpbWEvd3hjbGllbnQvbWt0L2FjdGl2aXRpZXMvc2hhcmUiLGRhdGEgPU8wTzBPTzBPME9PTzAwMDBPICxoZWFkZXJzID1PTzAwTzAwT08wTzBPT09PTyApI2xpbmU6NjcKICAgICAgICBPME8wT08wME9PME9PT08wTyA9anNvbiAubG9hZHMgKE8wTzBPTzAwT08wT09PTzBPIC50ZXh0ICkjbGluZTo2OAogICAgICAgIGlmIE8wTzBPTzAwT08wT09PTzBPIFsnY29kZSddPT0yMDAgOiNsaW5lOjY5CiAgICAgICAgICAgIHByaW50ICgn5YiG5Lqr5oiQ5Yqf77yBJykjbGluZTo3MAogICAgICAgIGVsaWYgTzBPME9PMDBPTzBPT09PME8gLmdldCAoInJlc3VsdCIpPT0ic3VjY2VzcyI6I2xpbmU6NzEKICAgICAgICAgICAgcHJpbnQgKGYn5YiG5Lqr5oiQ5YqfficpI2xpbmU6NzIKICAgICAgICBlbHNlIDojbGluZTo3MwogICAgICAgICAgICBwcmludCAoZidja+i/h+acn+S6hu+8jOivt+mHjeaWsOaKk++8gScpI2xpbmU6NzQKICAgICAgICBmb3IgTzAwTzAwT09PT09PTzBPMDAgaW4gcmFuZ2UgKDMgKTojbGluZTo3NgogICAgICAgICAgICBwcmludCAoZiLnrKx7TzAwTzAwT09PT09PTzBPMDAgKyAxfeasoeaKveWlliIpI2xpbmU6NzcKICAgICAgICAgICAgTzBPME9PMDBPTzBPT09PME8gPXJlcXVlc3RzIC5wb3N0ICgiaHR0cHM6Ly9zY3JtLmFpbWF0ZWNoLmNvbS9haW1hL3d4Y2xpZW50L21rdC9hY3Rpdml0aWVzL2x1Y2t5OmpvaW4iLGRhdGEgPU8wTzBPTzBPME9PTzAwMDBPICxoZWFkZXJzID1PTzAwTzAwT08wTzBPT09PTyApI2xpbmU6NzgKICAgICAgICAgICAgTzBPME9PMDBPTzBPT09PME8gPWpzb24gLmxvYWRzIChPME8wT08wME9PME9PT08wTyAudGV4dCApI2xpbmU6NzkKICAgICAgICAgICAgaWYgTzBPME9PMDBPTzBPT09PME8gWydjb2RlJ109PTIwMCA6I2xpbmU6ODAKICAgICAgICAgICAgICAgIHByaW50ICgn5oq95aWW5oiQ5Yqf77yBJykjbGluZTo4MQogICAgICAgICAgICBlbGlmIE8wTzBPTzAwT08wT09PTzBPIFsnY29kZSddPT05MTA1MDEgOiNsaW5lOjgyCiAgICAgICAgICAgICAgICBwcmludCAoZifkurLvvIzmgqjnmoTlj4LkuI7mnLrkvJrlt7LnlKjlrozvvIzor7fkuIvmrKHlho3mnaXvvZ4nKSNsaW5lOjgzCiAgICAgICAgICAgICAgICBicmVhayAjbGluZTo4NAogICAgICAgICAgICBlbHNlIDojbGluZTo4NQogICAgICAgICAgICAgICAgcHJpbnQgKGYnY2vov4fmnJ/kuobvvIzor7fph43mlrDmipPvvIEnKSNsaW5lOjg2CiAgICAgICAgICAgICAgICBicmVhayAjbGluZTo4NwogICAgICAgIE8wTzBPTzAwT08wT09PTzBPID1yZXF1ZXN0cyAuZ2V0ICgiaHR0cHM6Ly9zY3JtLmFpbWF0ZWNoLmNvbS9haW1hL3d4Y2xpZW50L21lbWJlci9JbmRleEluZm8iLGhlYWRlcnMgPU9PMDBPMDBPTzBPME9PT09PICkjbGluZTo4OAogICAgICAgIE8wTzBPTzAwT08wT09PTzBPID1qc29uIC5sb2FkcyAoTzBPME9PMDBPTzBPT09PME8gLnRleHQgKSNsaW5lOjg5CiAgICAgICAgT09PME9PTzBPT09PME9PMDAgPU8wTzBPTzAwT08wT09PTzBPIC5nZXQgKCdjb250ZW50Jyx7fSkjbGluZTo5MAogICAgICAgIE9PTzAwT08wMDAwMDBPTzAwID1PT08wT09PME9PT08wT08wMCAuZ2V0ICgnbW9iaWxlJyx7fSkjbGluZTo5MQogICAgICAgIHByaW50IChmJ+eUqOaIt++8mntPT08wME9PMDAwMDAwT08wMH0nKSNsaW5lOjkyCiAgICAgICAgT09PME9PTzBPT09PME9PMDAgPU8wTzBPTzAwT08wT09PTzBPIC5nZXQgKCdjb250ZW50Jyx7fSkjbGluZTo5MwogICAgICAgIE9PTzBPT09PT08wT08wTzBPID1PT08wT09PME9PT08wT08wMCAuZ2V0ICgndmlwTWVtYmVyTGV2ZWxEVE8nLHt9KSNsaW5lOjk0CiAgICAgICAgTzBPT08wMDBPT09PTzAwME8gPU9PTzBPT09PT08wT08wTzBPIC5nZXQgKCdncm93dGhWYWx1ZScse30pI2xpbmU6OTUKICAgICAgICBwcmludCAoZifmiJDplb/lgLzvvJp7TzBPT08wMDBPT09PTzAwME99JykjbGluZTo5NgogICAgICAgIE9PTzBPT08wT09PTzBPTzAwID1PME8wT08wME9PME9PT08wTyAuZ2V0ICgnY29udGVudCcse30pI2xpbmU6OTcKICAgICAgICBPTzBPTzBPTzAwT09PME8wTyA9T09PME9PTzBPT09PME9PMDAgLmdldCAoJ3ZpcE1lbWJlclBvaW50RFRPJyx7fSkjbGluZTo5OAogICAgICAgIE9PT08wTzBPT08wT08wT08wID1PTzBPTzBPTzAwT09PME8wTyAuZ2V0ICgncG9pbnRWYWx1ZScse30pI2xpbmU6OTkKICAgICAgICBwcmludCAoZifnp6/liIbmnInvvJp7T09PTzBPME9PTzBPTzBPTzB9JykjbGluZToxMDAKICAgIGVsc2UgOiNsaW5lOjEwMQogICAgICAgIHByaW50IChmJ2Nr6L+H5pyf5LqGLOivt+mHjeaWsOaKk++8gScpI2xpbmU6MTAyCiAgICAgICAgbm90aWZ5IC5zZW5kIChPMDBPME9PME9PTzBPT09PTyAsIlxuIGNr6L+H5pyf5LqGLOivt+mHjeaWsOaKk++8gSIpI2xpbmU6MTAzCmlmIF9fbmFtZV9fID09Il9fbWFpbl9fIjojbGluZToxMDUKICAgIE8wMDAwT09PMDAwT09PT09PID1vcyAuZW52aXJvbiAuZ2V0ICgnYW1oeWpsYicpI2xpbmU6MTA2CiAgICBpZiBub3QgTzAwMDBPT08wMDBPT09PT08gOiNsaW5lOjEwNwogICAgICAgIHByaW50ICgiXG49PT09PT09PT09PT09PT09PT09PT09PT09PT09PT095oOz5LuA5LmI5ZGi77yM5Y+Y6YeP6YO95rKh5aGr77yM6LeR5LuA5LmIPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PSIpI2xpbmU6MTA4CiAgICBlbHNlIDojbGluZToxMDkKICAgICAgICBPTzAwTzAwME9PTzBPME9PTyA9TzAwMDBPT08wMDBPT09PT08gLnNwbGl0ICgnXG4nKSNsaW5lOjExMAogICAgICAgIGZvciBPMDAwT08wME9PTzBPME9PTyAsTzBPME9PTzBPME9PME9PME8gaW4gZW51bWVyYXRlIChPTzAwTzAwME9PTzBPME9PTyAsc3RhcnQgPTEgKTojbGluZToxMTEKICAgICAgICAgICAgTzAwTzBPME9PME8wME9PMDAgPU8wTzBPT08wTzBPTzBPTzBPIC5zcGxpdCAoJysnKSNsaW5lOjExMgogICAgICAgICAgICBPTzBPTzAwME8wMDAwT08wTyA9TzAwTzBPME9PME8wME9PMDAgWzAgXS5zdHJpcCAoKSNsaW5lOjExMwogICAgICAgICAgICBPMDAwMDBPT08wTzBPTzAwTyA9TzAwTzBPME9PME8wME9PMDAgWzEgXS5zdHJpcCAoKWlmIGxlbiAoTzAwTzBPME9PME8wME9PMDAgKT4xIGVsc2UgZiLniLHnjpvkvJrlkZjkv7HkuZDpg6jvvJrotKblj7d7TzAwME9PMDBPT08wTzBPT099IiNsaW5lOjExNAogICAgICAgICAgICBwcmludCAoZiI9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09IOW8gOWni+aJp+ihjOesrCB7TzAwME9PMDBPT08wTzBPT099IOS4qui0puWPt+S7u+WKoSA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09IikjbGluZToxMTUKICAgICAgICAgICAgTzBPT08wMDBPT09PME9PMDAgKE9PME9PMDAwTzAwMDBPTzBPICxPMDAwMDBPT08wTzBPTzAwTyApI2xpbmU6MTE2Cg=='))